/*
 * my_plugin.h
 *
 *  Created on: Aug 31, 2009
 *      Author: lius
 */

#ifndef MY_PLUGIN_H_
#define MY_PLUGIN_H_

enum {
	EPOLL_EV_READ = 1,
	EPOLL_EV_WRITE,
	EPOLL_EV_RANDW
};

enum {
	EPOLL_OP_MODIFY = 1,
	EPOLL_OP_CLOSE
};

typedef int(*epoll_cntl_func)(void*, int, int, int);
typedef int(*epoll_recv_func)(int, char*, int);
typedef int(*epoll_send_func)(int, char*, int);

typedef struct _base_func{
	void *pepoll;
	epoll_cntl_func epoll_cntl;
	epoll_recv_func epoll_recv;
	epoll_send_func epoll_send;
	char pfile[128];
} base_func_t;

#endif /* MY_PLUGIN_H_ */
